package com.gl.MyAgent;

import java.lang.instrument.ClassFileTransformer;
import java.lang.instrument.Instrumentation;

public class MyAgent {

	private static Instrumentation inst = null; 
	
	public static void premain(String str, Instrumentation ins) {
		System.out.println("开始执行 MyAgent 中的 premain");
		inst = ins;
		ClassFileTransformer cftf = new MyClassFileTransFormer();
		inst.addTransformer(cftf);
	}
}
